home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / alsa / pcm / surround51.conf < prev    next >
Text File  |  2008-10-07  |  930b  |  62 lines

  1. #
  2. #  Hardware output from 5.1 speakers
  3. #  Samples must be positioned:
  4. #    chn0 - front left
  5. #    chn1 - front right
  6. #    chn2 - rear left
  7. #    chn3 - rear right
  8. #    chn4 - center
  9. #    chn5 - lfe
  10. #
  11.  
  12. pcm.!surround51 {
  13.     @args [ CARD DEV ]
  14.     @args.CARD {
  15.         type string
  16.         default {
  17.             @func getenv
  18.             vars [
  19.                 ALSA_SURROUND51_CARD
  20.                 ALSA_PCM_CARD
  21.                 ALSA_CARD
  22.             ]
  23.             default {
  24.                 @func refer
  25.                 name defaults.pcm.surround51.card
  26.             }
  27.         }
  28.     }
  29.     @args.DEV {
  30.         type integer
  31.         default {
  32.             @func igetenv
  33.             vars [
  34.                 ALSA_SURROUND51_DEVICE
  35.             ]
  36.             default {
  37.                 @func refer
  38.                 name defaults.pcm.surround51.device
  39.             }
  40.         }
  41.     }
  42.     type empty
  43.     slave.pcm {
  44.         @func refer
  45.         name {
  46.             @func concat
  47.             strings [
  48.                 "cards."
  49.                 {
  50.                     @func card_driver
  51.                     card $CARD
  52.                 }
  53.                 ".pcm.surround51." $DEV ":CARD=" $CARD
  54.             ]
  55.         }
  56.     }
  57.     hint {
  58.         description "5.1 Surround output to Front, Center, Rear and Subwoofer speakers"
  59.         device $DEV
  60.     }
  61. }
  62.